package com.pzhu.record.mapper;

import com.pzhu.record.entity.Basicinformation;
import com.pzhu.record.entity.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BasicinformationMapper {
    int deleteByPrimaryKey(String basicinformationId);

    int insert(Basicinformation record);

    int insertSelective(Basicinformation record);

    Basicinformation selectByPrimaryKey(String basicinformationId);

    int updateByPrimaryKeySelective(Basicinformation record);

    int updateByPrimaryKey(Basicinformation record);

    /**
     * 通过用户名与密码查询对象
     *
     * @param basicinformationId
     * @param basicinformationPassword
     * @return
     */
    Basicinformation selectByIdOrpass(@Param("basicinformationId") String basicinformationId, @Param("basicinformationPassword") String basicinformationPassword);

    /**
     * 批量增加
     *
     * @param basicinformationList
     */
    int insertBatch(List<Basicinformation> basicinformationList);

    /**
     * 查询所有学生信息,导出
     *
     * @return
     */
    List<Basicinformation> selectExport(@Param("keywords") Map<String, String> keywords);

    /**
     * 查询数据列表
     *
     * @return 分页、搜索数据列表
     */
    public List<Basicinformation> selectPageList(Page<Basicinformation> bbsuserPage);

    /**
     * 查询总记录数
     *
     * @return 总记录数
     */
    public Integer selectPageCount(Page<Basicinformation> basicinformationPage);

    /**
     * 根据学院查询最大Id号
     *
     * @param InstituteNume
     * @return
     */
    public String selectMaxId(@Param("InstituteNume") String InstituteNume, @Param("grade") String grade);

}